package com.example.backend.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_user")
public class SysUser {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id; //用户id
    private String username; // 用户名
    private String nickName; //昵称
    private String gender; //性别
    private String password; //密码
    private String dept; //部门名称
    private String phone; //联系方式
    private String status; //用户状态
    private String email; //用户邮箱
    @JsonFormat(pattern = "yyyy-MM-dd--HH:mm:ss",timezone = "GMT+8")
    private Date createTime; //填写时间
}
